package com.handwriting.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Model {
    @TableId(type = IdType.AUTO)
    private int id;
    private String name;
    private int datasetId;
    private float trainRatio;
    private float validRatio;
    @TableField(exist = false)
    private float testRatio;
    private int epochs;
    private int batchSize;
    private float learningRate;
    private String optimizerName;
    private float accuracy;
    private int usedCount;
    private int errorCount;
    @TableField(exist = false)
    private boolean selected;
}
